package com.ywl.designpattern.builder;

public class Director {

    private ComputerBuilder builder;

    public Director(ComputerBuilder builder) {
        this.builder = builder;
    }

    public void constructGamingPC() {
        builder.buildCPU("Intel i9");
        builder.buildRAM("32GB DDR4");
        builder.buildStorage("1TB NVMe SSD");
        builder.buildGPU("NVIDIA RTX 3080");
    }

    public void constructOfficePC() {
        builder.buildCPU("Intel i5");
        builder.buildRAM("16GB DDR4");
        builder.buildStorage("512GB SSD");
        builder.buildGPU("Integrated Graphics");
    }
}
